package cn.sc.allinpay.allfavour.business.common.data;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * description：同享限制
 * 仅金额券有该字段
 * author：pany
 * on 2018/8/2 16:18
 */
public class ShareData implements Parcelable {
    private String coupon;//0不同享1同享
    private String rights;//0不同享1同享
    private String out;//0不同享1同享

    public ShareData() {

    }

    protected ShareData(Parcel in) {
        coupon = in.readString();
        rights = in.readString();
        out = in.readString();
    }

    public String getCoupon() {
        return coupon;
    }

    public void setCoupon(String coupon) {
        this.coupon = coupon;
    }

    public String getRights() {
        return rights;
    }

    public void setRights(String rights) {
        this.rights = rights;
    }

    public String getOut() {
        return out;
    }

    public void setOut(String out) {
        this.out = out;
    }

    public static final Creator<ShareData> CREATOR = new Creator<ShareData>() {
        @Override
        public ShareData createFromParcel(Parcel in) {
            return new ShareData(in);
        }

        @Override
        public ShareData[] newArray(int size) {
            return new ShareData[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(coupon);
        parcel.writeString(rights);
        parcel.writeString(out);
    }
}
